package com.rujue.qianzhi.thrift;

import org.apache.thrift.TException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.rujue.qianzhi.service.HelloService;
import com.rujue.qianzhi.thrift.gen.*;

@Component
public class HelloImpl implements Hello.Iface {
	
	@Autowired
	private HelloService helloService;

	public Response helloString(Requst para) throws TException {
//		try {
//			Thread.sleep(10*1000);
//		} catch (InterruptedException e) {
//			e.printStackTrace();
//		}
		return helloService.helloString(para);
	}

}
